Optimal. Leaf size=28 \[ \frac {(c+d x) \cosh (a+b x)}{b}-\frac {d \sinh (a+b x)}{b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3377, 2717}
\begin {gather*} \frac {(c+d x) \cosh (a+b x)}{b}-\frac {d \sinh (a+b x)}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2717
Rule 3377
Rubi steps
\begin {align*} \int (c+d x) \sinh (a+b x) \, dx &=\frac {(c+d x) \cosh (a+b x)}{b}-\frac {d \int \cosh (a+b x) \, dx}{b}\\ &=\frac {(c+d x) \cosh (a+b x)}{b}-\frac {d \sinh (a+b x)}{b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 27, normalized size = 0.96 \begin {gather*} \frac {b (c+d x) \cosh (a+b x)-d \sinh (a+b x)}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.42, size = 53, normalized size = 1.89
method | result | size |
risch | \(\frac {\left (b d x +b c -d \right ) {\mathrm e}^{b x +a}}{2 b^{2}}+\frac {\left (b d x +b c +d \right ) {\mathrm e}^{-b x -a}}{2 b^{2}}\) | \(47\) |
derivativedivides | \(\frac {\frac {d \left (\left (b x +a \right ) \cosh \left (b x +a \right )-\sinh \left (b x +a \right )\right )}{b}-\frac {d a \cosh \left (b x +a \right )}{b}+c \cosh \left (b x +a \right )}{b}\) | \(53\) |
default | \(\frac {\frac {d \left (\left (b x +a \right ) \cosh \left (b x +a \right )-\sinh \left (b x +a \right )\right )}{b}-\frac {d a \cosh \left (b x +a \right )}{b}+c \cosh \left (b x +a \right )}{b}\) | \(53\) |
meijerg | \(-\frac {2 d \sinh \left (a \right ) \sqrt {\pi }\, \left (-\frac {1}{2 \sqrt {\pi }}+\frac {\cosh \left (b x \right )}{2 \sqrt {\pi }}-\frac {b x \sinh \left (b x \right )}{2 \sqrt {\pi }}\right )}{b^{2}}+\frac {d \cosh \left (a \right ) \left (\cosh \left (b x \right ) b x -\sinh \left (b x \right )\right )}{b^{2}}+\frac {c \sinh \left (a \right ) \sinh \left (b x \right )}{b}-\frac {c \cosh \left (a \right ) \sqrt {\pi }\, \left (\frac {1}{\sqrt {\pi }}-\frac {\cosh \left (b x \right )}{\sqrt {\pi }}\right )}{b}\) | \(95\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 68 vs.
\(2 (28) = 56\).
time = 0.26, size = 68, normalized size = 2.43 \begin {gather*} \frac {c e^{\left (b x + a\right )}}{2 \, b} + \frac {{\left (b x e^{a} - e^{a}\right )} d e^{\left (b x\right )}}{2 \, b^{2}} + \frac {c e^{\left (-b x - a\right )}}{2 \, b} + \frac {{\left (b x + 1\right )} d e^{\left (-b x - a\right )}}{2 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 29, normalized size = 1.04 \begin {gather*} \frac {{\left (b d x + b c\right )} \cosh \left (b x + a\right ) - d \sinh \left (b x + a\right )}{b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.09, size = 46, normalized size = 1.64 \begin {gather*} \begin {cases} \frac {c \cosh {\left (a + b x \right )}}{b} + \frac {d x \cosh {\left (a + b x \right )}}{b} - \frac {d \sinh {\left (a + b x \right )}}{b^{2}} & \text {for}\: b \neq 0 \\\left (c x + \frac {d x^{2}}{2}\right ) \sinh {\left (a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 46, normalized size = 1.64 \begin {gather*} \frac {{\left (b d x + b c - d\right )} e^{\left (b x + a\right )}}{2 \, b^{2}} + \frac {{\left (b d x + b c + d\right )} e^{\left (-b x - a\right )}}{2 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.10, size = 35, normalized size = 1.25 \begin {gather*} \frac {c\,\mathrm {cosh}\left (a+b\,x\right )+d\,x\,\mathrm {cosh}\left (a+b\,x\right )}{b}-\frac {d\,\mathrm {sinh}\left (a+b\,x\right )}{b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________